#!/usr/bin/python3

import logging
def use_logging(x):
    logging.warn("%s is running" % x.__name__)
    x()

def bar():
    print ("i am bar")
use_logging(bar)
